package cn.sdormitory.smartdor.vo;

import cn.sdormitory.sys.entity.SysMenu;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class SdManualAttenceVo {
   /**
     * ID
     */
    private Long id;

    private  Long pid;

    private  String building_no ;

    private  String storey;

    private Date accessDate;

    private String attenceStatus;


    private  Integer type;

    /**
     * 需要显示的 label
     */
    private  String name;

    /**
     * 需要显示的 value
     */
    private String value;

    /**
     * 存储子集信息
     */
    @TableField(exist = false)
    private List<SdManualAttenceVo> children = new ArrayList<SdManualAttenceVo>();

    public String toString(){
         return  " id : "+ id +"\tpid : "+pid +"\t type : "+type+" \t label : "+name +" \t value : "+value +"\t children : "+children ;
    }

}
